package com.report.dao.admin.vote;

import com.report.model.admin.vote.Vote;
import com.report.model.admin.vote.VoteExample;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface VoteMapper {
    int countByExample(VoteExample example);

    int deleteByExample(VoteExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Vote record);

    int insertSelective(Vote record);

    List<Vote> selectByExample(VoteExample example);

    Vote selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Vote record, @Param("example") VoteExample example);

    int updateByExample(@Param("record") Vote record, @Param("example") VoteExample example);

    int updateByPrimaryKeySelective(Vote record);

    int updateByPrimaryKey(Vote record);

    /**
     * 查询投票结果
     *
     * @param params
     * @return
     */
    List<Map<String, Object>> queryVoteResult(Map<String, Object> params);
}